home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / twsansi1.lzh / ANSISEQ.TXT next >
Text File  |  1992-05-19  |  16KB  |  484 lines

  1. ANSITerm Supplimentary Documentation
  2. ANSI VT-100 Escape sequences
  3.  
  4. Compiled by Timothy Miller
  5.  
  6.  
  7. This is a list of all the ANSI escape sequences that I could find.
  8. Commands not supported by ANSITerm have been marked. 
  9.  
  10. Spaces are included for clarity, and <ESC> represents ASCII character 27, a non-printing character.
  11.  
  12.  
  13. CPR Cursor Position Report
  14. <esc> [ Row ; Col R
  15. Terminal responce to DSR.
  16.  
  17. CUB Cursor Backwards
  18. <esc> [ n D
  19. Moves cursor n positions to the left.  If n=0, default is 1.
  20. If attempt is made to move beyond margin, cursor stops ar margin.
  21.  
  22. CUD Cursor Down
  23. <esc> [ n B
  24. Moves cursor n positions down.  If n=0, default is 1.
  25. If attempt is made to move beyond margin, cursor stops ar margin.
  26.  
  27. CUF Cursor Forward
  28. <esc> [ n C
  29. Moves cursor n positions to the right.  If n=0, default is 1.
  30. If attempt is made to move beyond margin, cursor stops ar margin.
  31.  
  32. CUU Cursor Up
  33. <esc> [ n A
  34. Moves cursor n positions up.  If n=0, default is 1.
  35. If attempt is made to move beyond margin, cursor stops ar margin.
  36.  
  37. CUP Cursor Position
  38. <esc> [ Row ; Col H
  39. Moves cursor to position on screen.  Columns numbered 1-80, Rows
  40. 1-24 unless margins set otherwise.  If parameter is 0 or missing,
  41. 1 is default.
  42.  
  43. DA Device Attributes
  44. <esc> [ n c
  45. n should be 0 or missing.  Terminal responds:
  46.    <esc> [ ? 1 ; 2 c        For ANSI/VT-100 terminal w/o printer
  47.    <esc> [ ? 1 ; 11 c        "     "           "     w/ printer
  48.  
  49. DCH Delete Characters
  50. <esc> [ n P
  51. Causes n characters to be removed from the right of the cursor,
  52. including the cursor.  ANSITERM moves the characters to the right of
  53. the deleted field to be moved left to fill in the empty space.
  54. Spaces to the right of the moved block are filled with blanks
  55. with the same character attributes as the last moved character.
  56.  
  57. DECALN Screen Alignment Display
  58. <esc> # 8
  59. Causes the screen to be filled with uppercase E's to assist in
  60. alligning the screen display.  Not supported by ANSITERM.
  61.  
  62. DECANM ANSI/VT52 Mode
  63. <esc> [ ? 2 l
  64. Causes the terminal to switch to VT-52 mode.  VT-52 is not
  65. supported by ANSITERM.
  66.  
  67. DECARM Auto Repeat Mode
  68. <esc> [ ? 8 h      (on)
  69. <esc> [ ? 8 l      (off)
  70. Turns key auto-repeat on or off.  Not supported by ANSITERM:
  71. auto-repeat is always on.
  72.  
  73. DECAWM Autowrap Mode
  74. <esc> [ ? 7 h     (on)
  75. <esc> [ ? 7 l     (off)
  76. Turns end-of-line wrap on or off.  When off, any characters 
  77. displaying at the right margin will replace any character already
  78. there.  When on, these characters appear at the beginning of
  79. the next line.
  80.  
  81. DECCKM Cursor Keys Mode
  82. <esc> [ ? 1 h        (application)
  83. <esc> [ ? 1 l        (cursor)
  84. In application mode, the cursor keys send the following codes:
  85.    left     <esc> O D
  86.    down     <esc> O B
  87.    right    <esc> O C
  88.    up       <esc> O A
  89. In cursor mode (the default), the cursor keys send:
  90.    left     <esc> [ D
  91.    down     <esc> [ B
  92.    right    <esc> [ C
  93.    up       <esc> [ A
  94.  
  95. DECCOLM Column Mode
  96. <esc> [ ? 3 h      (132 columns)
  97. <esc> [ ? 3 l      (80 columns)
  98. 132 column mode is not supported by ANSITERM.
  99.  
  100. DECDHL Double Height Line
  101. Top half:       <esc> # 3
  102. Bottom half:    <esc> # 4
  103. Causes the whole current line to change to double-width, 
  104. double-height top-half or bottom-half.  If the line was normal,
  105. all characters to the right of the center of the screen are lost.
  106. Cursor remains at the same position unless it would be placed
  107. beyond the right margin, in which case, it would be placed at
  108. the right margin.
  109. Double height is not supported by ANSITERM.
  110.  
  111. DECDWL Double Width Line
  112. <esc> # 6
  113. Causes the current line to become double-width, normal-height.
  114. If the line was normal, all characters to the right of the center 
  115. of the screen are lost.  Cursor remains at the same position 
  116. unless it would be placed beyond the right margin, in which case, 
  117. it would be placed at the right margin.
  118. Double width is not supported by ANSITERM.
  119.  
  120. DECEDM Editing Mode
  121. <esc> [ ? 10 h     (edit)
  122. <esc> [ ? 10 l     (interactive)
  123. In edit mode, characters are only sent when you press return 
  124. (I think).  Interactive mode is normal.
  125. ANSITERM does not support Editing mode.
  126.  
  127. DECEKEM Edit Key Execution Mode
  128. <esc> [ ? 16 h     (immediate)
  129. <esc> [ ? 16 l     (defer)
  130. In immediate state, if the user puts the terminal in edit mode,
  131. the host computer is told.  In the defer state, if the user attempts
  132. to put the terminal in edit mode, the host computer is asked first.
  133.  
  134. DECID Identity Terminal
  135. <esc> Z
  136. Same as DA, never use this.  ANSITERM doesn't support it either.
  137.  
  138. DECINLM Interlace Mode
  139. <esc> [ ? 9 h     (on)
  140. <esc> [ ? 9 l     (off)
  141. ANSITERM ignores this command.
  142.  
  143. DECKPNM Keypad Numeric Mode
  144. <esc> >
  145. Causes the numeric keypad to send the characters which appear
  146. on the keytops.
  147.  
  148. DECKPAM Keypad Application Mode
  149. <esc> =
  150. Causes the numeric keypad to transmit the following sequences:
  151.    (PF1)           (PF2)           (PF3)           (PF4)
  152.    '(' <esc> O P   ')' <esc> O Q   '/' <esc> O R   '*' <esc> O S
  153.    '7' <esc> O w   '8' <esc> O x   '9' <esc> O y   '-' <esc> O m
  154.    '4' <esc> O t   '5' <esc> O u   '6' <esc> O v   '+' <esc> O 1
  155.    '1' <esc> O q   '2' <esc> O r   '3' <esc> O s
  156.    '0' <esc> O p                   '.' <esc> O n  ENTER <esc> O M
  157. On some terminals, there is a TAB key in place of a '+' key, and
  158. PF1 - PF4 are the top row of keys.
  159.  
  160. DECLL Load LED's
  161. <esc> [ n q
  162. Depending on n, the following action is preformed:
  163.    0    Clear LED's 1 and 2
  164.    1    Set LED 1
  165.    2    Set LED 2
  166. LED's are not supported by ANSITERM.
  167.  
  168. DECLTM Line Transmit Mode
  169. <esc> [ ? 11 h     (line)
  170. <esc> [ ? 11 l     (page)
  171. In edit mode, line, page, or partial page is transmitted by the
  172. terminal.  Edit mode is not supported by ANSITERM.
  173.  
  174. DECXMIT Transmit
  175. <esc> 5
  176. Causes the terminal to transmit the line being edited as if the
  177. user had pressed return to send it.  Edit mode is not supported
  178. by ANSITERM.
  179.  
  180. DECOM Origin Mode
  181. <esc> [ ? 6 h     (relative)
  182. <esc> [ ? 6 l     (absolute)
  183. In relative mode, cursor positions are numbered with respect with
  184. the current scrolling region.  In absolute mode, cursor positions
  185. are numbered with respect to the whole screen.  Since these two
  186. ranges are usually the same, ANSITERM is always in absolute mode.
  187.  
  188. DECPRO Protected Field Attributes
  189. <esc> [ n ; ... ; n }
  190. According to n, sets the following:
  191.    0  no fields are protected
  192.    1  bold implies protection
  193.    4  underline implies protection
  194.    5  blinking implies protection
  195.    7  reverse video implies protection
  196.  254  all attributes off (normal) implies protection
  197. Since ANSITERM is not an editing terminal, it does not support
  198. field protection.
  199.  
  200. DECSC Save Cursor
  201. <esc> 7       (standard)
  202. <esc> [ s     (this must be VT-102 only)
  203. Saves current cursor position and printing attributes.  ANSITERM
  204. only saves position.
  205.  
  206. DECRC Restore Cursor
  207. <esc> 8       (standard)
  208. <esc> [ u     (this must be VT-102 only)
  209. Restores cursor to a previously stored position.
  210.  
  211. DECREQTPARM Request Terminal Parameters
  212. <esc> [ n x
  213. n will be 0 or 1.  Terminal responds with DECREPTPARM.
  214.  
  215. DECREPTPARM Report Terminal Parameters
  216. <esc> [ sol ; par ; nbits ; xspeed ; rspeed ; clkmul ; flags x
  217. Terminal's responce to DECREQTPARM.  Parameters are:
  218. sol : is DECREQTPARM's n is 0, sol = 2.  If n is 1, sol = 3
  219. par : parity:
  220.    1   none
  221.    2   space
  222.    3   mark
  223.    4   odd
  224.    5   even
  225.    ANSITERM sends 1
  226. nbits:  1 for 8 bits, 2 for 7 bits per char (default 1)
  227. xspeed, rspeed:
  228.    code    baud
  229.    0       50
  230.    8       75
  231.    16      110
  232.    24      134.5
  233.    32      150
  234.    40      200
  235.    48      300
  236.    56      600
  237.    64      1200
  238.    72      1800
  239.    80      2000
  240.    88      2400
  241.    96      3600
  242.    104     4800
  243.    112     9600
  244.    120     19200
  245. clkmul: 1   (bit rate multiplier is 16)
  246. flag: 0-15   (ignored)
  247.  
  248. DECSCFDM Space Compression/Field Delimiting Mode
  249. <esc> [ ? 13 h     (on)
  250. <esc> [ ? 13 l     (off)
  251. Sets mode for sending data in edit mode.  ANSITERM does not support
  252. edit mode.
  253.  
  254. DECSCLM Scrolling Mode
  255. <esc> [ ? 4 h     (smooth)
  256. <esc> [ ? 4 l     (jump)
  257. ANSITERM does not support smooth scrolling.
  258.  
  259. DECSCNM Scre